<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
       <%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>帖子列表</title>
</head>
<body>
   <%@ include file="/common/header.jsp" %>
   <table width="97%" border="1" align="center">
     <tr>
       <td colspan="2">
         <table width="97%" border="0" align="center">
           <tr>
             <td>
                                       欢迎你访问论坛：${username }
             </td>
             <td align="right">
               <a href="backtoindex">首页&nbsp;</a>
               <a href="logoff">注销登陆&nbsp;</a>
               <a href="newresponse.jsp?topicid=${topicid }">回复主题&nbsp;</a>
             </td>
           </tr>
         </table>
       </td>
     </tr>
     <tr>
       <td colspan="2">
         <table width="100%" border="0" bordercolor="#FFFFCC">
           <tr bgcolor="#3366CC">
             <td width="22%">
                                         话题作者：${topic.author }
             </td>
             <td width="78%">
                                         标题：${topic.title }
             </td>
           </tr>
           <tr bgcolor="#CCCCCC">
              <td>
                                         等级：{response.grade }<br>
                                         发表时间：${topic.submittime }
              </td>
              <td>
                ${topic.content }&nbsp;
             </td>
           </tr>
         </table>
       </td>
     </tr>
     <c:forEach items="${ responselist}" var="response">
     <tr>
       <td colspan="2">
         <table width="100%" border="0" bordercolor="#FFFFCC">
           <tr bgcolor="#3366CC">
             <td width="22%">
                                         作者：${response.author }
             </td>
             <td width="78%">
                                         标题：${response.title }
             </td>
           </tr>
           <tr bgcolor="#CCCCCC">
              <td>
                                         等级：{response.grade }<br>
                                         发表时间：${response.submittime }
              </td>
              <td>
                ${response.content }&nbsp;
             </td>
           </tr>
         </table>
       </td>
     </tr>
     </c:forEach>
   </table>
    <br><br>
    <div align="center">
   <a href="responselist?id=${topicid }&pagenum=1">第一页</a> &nbsp;&nbsp;
   <a href="responselist?id=${topicid }&pagenum=${lastpage}">上一页</a> &nbsp;&nbsp;
   <a href="responselist?id=${topicid }&pagenum=${nextpage}">下一页</a> &nbsp;&nbsp;
   </div>
   <br><br>
   <%@ include file="/common/footer.jsp" %>
</body>
</html>